//
//  Extra5ViewController.h
//  ToucheTouche
//
//  Created by polytech polytech on 13/01/12.
//  Copyright (c) 2012 polytech. All rights reserved.
//

#import <UIKit/UIKit.h>

@class GameAventureViewController;

@protocol Extra5ViewControllerDelegate <NSObject>
@optional

@end

@interface Extra5ViewController : UIViewController <UIAlertViewDelegate> {
    NSTimer *chrono;
    float score;
    float temps;
    NSInteger rand;
    NSInteger nbImages;
    
    UIAlertView *alertLevel;
}

@property (nonatomic, retain) UIAlertView *alertLevel;
@property (retain, nonatomic) IBOutlet UIButton *button1;
@property (retain, nonatomic) IBOutlet UIButton *button2;
@property (retain, nonatomic) IBOutlet UIButton *button3;
@property (retain, nonatomic) IBOutlet UIButton *button4;
@property (retain, nonatomic) IBOutlet UIButton *button5;
@property (retain, nonatomic) IBOutlet UIImageView *imageView1;
@property (retain, nonatomic) IBOutlet UIImageView *imageView2;
@property (retain, nonatomic) IBOutlet UIImageView *imageView3;
@property (retain, nonatomic) IBOutlet UIImageView *imageView4;
@property (retain, nonatomic) IBOutlet UIImageView *imageView5;
@property (nonatomic, retain) IBOutletCollection(UIButton) NSArray *allButtons;
@property (nonatomic, retain) IBOutletCollection(UIImageView) NSArray *allImagesView;



@property (nonatomic, assign) float score;
@property (nonatomic,assign) float temps;
@property (nonatomic,assign) NSInteger rand;
@property (nonatomic,assign) NSInteger nbImages;;


@property (retain, nonatomic) IBOutlet UILabel *labelScore;

@property (retain, nonatomic) IBOutlet UILabel *labelTemps;

@property (nonatomic, retain) id <Extra5ViewControllerDelegate> delegate;
@property (nonatomic, retain) GameAventureViewController *gameAventureViewController;

- (IBAction)actionImage: (id)sender;
- (void)timer :(float) tmp;
- (void)stopTimer;
- (void) updateTimer: (NSTimer *) aTimer;
- (void) changeImage;

@end
